package com.scse.bms.service;

import com.scse.bms.mapper.DownloadMapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Title: DownloadService
 * @Author: 吴赠禹
 * @Date: 2021/2/24 21:05
 * @Version: 1.0
 * @Description: TODO
 */
public interface DownloadService {

    /**
     * 保存用户下载行为
     * @param userId
     * @param bookId
     * @return
     */
    int save(Integer userId, Integer bookId, Integer themeId);


    /**
     * 统计用户当天下载行为
     * @param userId
     * @return
     */
    Integer getDownCountByToday(Integer userId);

}
